<?php
use think\Route;


//Route::rule('admin/user','admin/user/index');
Route::resource('admin/user','admin/user');

return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],


    '[admin]' => [
        'login' => ['admin/base/login', ['method' => 'post']],   //admin/login
        'logout' => ['admin/base/logout', ['method' => 'post']],   //
        'index' => ['admin/index/index', ['method' => 'get']],   //admin/user
//        'user' => ['admin/user/index', ['method' => 'get']]   //admin/user

    ],




    '__miss__'  => 'admin/base/miss',

];
